home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 19
/
CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso
/
CUCD
/
Sound
/
MrMPEG
/
ListLoad.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-11-22
|
814b
|
26 lines
/* ListLoad.rexx */
options results; parse arg mode; address MrMPEG
ASLFR_InitialDrawer = 0x80080009; ASLFR_InitialFile = 0x80080008
MUIA_List_Active = 0x8042391c; MUIA_List_Entries = 0x80421654
MUIA_ShowMe = 0x80429ba8; MUIV_List_Active_Bottom = -3
MUIV_List_Active_Top = -2
if mode ~= 0 then
aslrequest TITLE '"Load list"' ATTRS ASLFR_InitialDrawer '"ENVARC:"',
ASLFR_InitialFile '"MrMPEG.list"'
else result = "ENV:MrMPEG.list"
if open('List', result, 'r') = 1 then do
if mode = 1 then call Clear.rexx
list ID SLIST ATTRS MUIA_List_Entries
entries = result
do while ~eof('List')
temp = readln('List')
list ID SLIST INSERT NODUP POS MUIV_List_Active_Bottom STRING temp
end
call close('List')
if entries = 0 then list ID SLIST ATTRS MUIA_List_Active MUIV_List_Active_Top
end
return